package com.jx.medical.mapper;

import com.jx.medical.pojo.Factory;
import com.jx.medical.pojo.Instorage;
import com.jx.medical.pojo.Medicine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author jx
 * @date Created on 2020/12/4  10:22
 **/

@Mapper
public interface AdminMapper {

    int insertMedicine(Medicine medicine);
    Medicine getMedicineBymedId(int medId);
    int updateMedStorage(@Param("medId") int medId, @Param("medStorage")int medStorage);
    int insertInstorage(Instorage instorage);
    int updateMedicine(Medicine medicine);
    int deleteMedicine(int medId);
    int insertFactory(Factory factory);
    Factory getFactoryByfactoryId(int factoryId);
    int updateFactory(Factory factory);
    int deleteFactory(int factoryId);
}
